package sh.orm.convert;

import java.sql.ResultSet;
import java.sql.SQLException;

/**
 * Long <-> biginteger
 * @author lqq
 * @date 2019/2/27
 */
public class FloatTypeConverter extends AbstractTypeConvertor<Float>{
    @Override
    public Float convertToJavaType(String columnName, ResultSet rs) {
        try {
            return rs.getFloat(columnName);
        } catch (SQLException e) {
            e.printStackTrace();
            throw new ResultSetException("获取结果集中字段异常" + rs.toString() + "字段名：" +columnName, e);
        }
    }
}
